Scratch sensor